﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using  System.Speech.Synthesis;
namespace TTS
{
    public class TTS
    {
        private static TTS _instance = new TTS();
        private List<string> message = new List<string>();
        private System.Speech.Synthesis.SpeechSynthesizer synth = new System.Speech.Synthesis.SpeechSynthesizer();
        private TTS()
        {
            synth.Rate = 5;
            synth.SelectVoice("VW Liang");
            synth.Volume = 100;
        }

        
        public static TTS  instance()
        {
                if(_instance == null)
                {
                    _instance = new TTS();
                }
                return _instance;
        }
    }
}
